<%@ page import="com.diapoclic.entitybean.*, com.diapoclic.entitymanager.*, java.util.List,java.util.ArrayList" language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <style type="text/css" media="all">
		<%@ include file="adylitica.css" %>
	</style> 
<title>Insert title here</title>
</head>
<body>
 	    <div id="page">
      <%@ include file="header.jsp"%>

      
	 <div id="highlightholder">
	 <div id="navbar">
	  
	 </div> 
	<div id="highlightcontents">
	  <div class="title">
	    <div class="main">DiapoClic</div>
	    <div class="tag">Partagez vos photos en ligne avec votre famille et vos amis.</div>
	  </div>

	  <div id="products">
		<div class="box">
		<p>Choisissez les amis avec lequels vous souhaitez partager vos albums puis choisissez les albums.</p>
		<form id="checkboxpartage" name="partage" action="partage" method="post">
			<table>
				<tr>
					<td>
						<table id="itsthetable">
							<tr>
								<th>Amis</th>
								<th>Choix</th>
							</tr>
							<%UserManager userMana= new UserManager(); %>
							<% for (User it : (List<User>)request.getAttribute("friendlist")) { %>
							<tr>
								<td><%=it.getNameUser() + " " + it.getFirstnameUser()%></td>
								<td>								
									<input type="checkbox" name="name" value="<%=it.getIdUser()%>">
								</td>
							</tr>
							<% } %>
						</table>
					</td>
					<td>
						<table id="itsthetable">
							<tr>
								<th>Albums</th>
								<th>Choix</th>
							</tr>
								<%FolderManager forlerMana= new FolderManager(); %>
							<% for (Folder it : (List<Folder>)request.getAttribute("albumlist")) { %>
							<tr>
								<td><%=it.getNameFolder()%></td>
								<td>
									<input type="checkbox" name="album" value="<%=it.getIdFolder()%>">
								</td>
							</tr>
							<% } %>
						</table>
					</td>
				</tr>
			</table>
			<input type="submit" value="Partager">
		</form>
		</div>
	  </div> <!-- #products -->

	  <div style="clear: left"></div>
	</div> <!-- #highlightcontents -->
      </div>
    </div> <!-- #page -->
    <div id="footer">
      <%@ include file="footer.jsp"%>
    </div>
</body>
</html>